//
//  LoginViewController.m
//  HospitalSystem
//
//  Created by jss on 16/5/4.
//
//

#import "LoginViewController.h"
#import <SVProgressHUD.h>

@interface LoginViewController ()
@property (weak, nonatomic) IBOutlet UITextField *tf_userName;
@property (weak, nonatomic) IBOutlet UITextField *tf_passWord;

@end

@implementation LoginViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    
    
}
- (IBAction)didClickLoginBtn:(id)sender {
    

    
    if ([self.tf_userName.text isEqualToString:@"11"] && [self.tf_passWord.text isEqualToString:@"11"]) {
        
        //登录成功
        //回调处理
        self.loginBlock();
        
    }else{
        
        //登录失败
        [SVProgressHUD showErrorWithStatus:@"账号或密码有误"];
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
